import java.util.ArrayList;
import java.util.List;

/**
 * @author Mr.J
 * @version 1.0.0
 * @date 2024/10/31
 * @desc
 */
public class Instructor {
	private Department department;
	private List<Subject> subjects;

	public Instructor(Department department) {
		this.department = department;
		this.subjects = new ArrayList<>();
	}

	public void teachSubject(Subject subject) {
		this.subjects.add(subject);
		subject.addInstructor(this);
	}

	public Department getDepartment() {
		return department;
	}

	public List<Subject> getSubjects() {
		return subjects;
	}
}